package com.ftg.learn.bus.exam_record.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ftg.learn.bus.exam_record.entity.ExamRecord;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface ExamRecordMapper extends BaseMapper<ExamRecord> {

    /**
     * 自动添加审批记录
     * @param sid
     * @param name
     * @return
     */
    @Insert("insert into exam_record (examrec_operate,examrec_operater,examrec_operatedate) values (#{param1},#{param2},now())")
    int autoInsert(String sid,String name);
}
